package com.igoal.campaign.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.igoal.campaign.dto.CampaignDTO;

public interface CampaignService {
	@Transactional(readOnly=false)
	CampaignDTO saveCampaign(CampaignDTO campaignDTO);
	
	@Transactional(readOnly=true)
	List<CampaignDTO> listCampaigns();
	
	@Transactional(readOnly=true)
	CampaignDTO getCampaign(Long id);
	
	@Transactional(readOnly=true)
	CampaignDTO getCampaignByName(String name);
	
	boolean isValidCampaign(CampaignDTO dto);
}
